home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
convert
/
ppp
/
ppp.doc
< prev
next >
Wrap
Text File
|
1993-11-24
|
4KB
|
92 lines
PPPic and PPPal v1.0 (c) Eric van der Staay a.k.a. Magician/Silicon Ltd.
Small docfile...
Here's a short description of PPPic and PPPal:
PPPic is a program that converts the imagedata of a PCX picture file into a
sourcefile written in Turbo Pascal. The sourcefile can either be linked or
copied into a complete program. This way the picture will be compiled within
the program, and you will be left with one (executable) file instead of two
(executable and data) files.
PPPal is a program that converts the palettevalues of a PCX picture file into
a sourcefile written in Turbo Pascal. With this sourcefile you can do the
same as the picture sourcefile.
Usage of PPPic and PPPal:
Both programs can be executed from the command-line by typing PPPic or PPPal
and then ENTER. Both programs will ask you the name of the PCX file to load and
they both will ask you the filename which the data must be written to.
Next thing they'll do is for you to type in a procedure name where the data
will be stored.
PPPic will then ask for the dimensions of the picture. * NOTICE * that your
picture cannot be bigger than 24 KBytes because Turbo Pascal does not allow
you to create statements bigger than 24K. If you have a picture bigger than
24K, you need to split it up in several procedures. It's no big deal.
Next, the picture will be showed and saved in the dimensions you entered.
That's it! Your picture is safely saved into a Turbo Pascal procedure... But
now you still need to save the palette! This is where PPPal comes in.
PPPal will ask you the same as PPPic, except that he will not ask dimensions.
He only saves the palette into a Turbo Pascal procedure.
Now you are finished! Look in the file TESTPPP.PAS for examples on how to show
your pictures in your own programs.
When you have compiled your program you can use an executable file packer like
PKLITE to shrink the bit, so your program won't be so big...
Last words:
I really didn't make these programs to be the best in something or whatever,
I just made them for people who don't know how to do it by themselves, so
they can learn from it... That's the way I learned it!!!
If you are going to use these routines, you don't have to credit me, because
everyone can write this (even if everyone couldn't write this you wouldn't
have to credit me anyway), but a 'thank you' or a 'hi Magician/Silicon' would
be nice to see...
Also, if you spread these programs, be sure to include all these files:
PPPic.Exe - The PCX picture converter
PPPal.Exe - The PCX palette converter
TestPPP.Pas - Example program
TestPPP.Exe - Compiled example program with linked in picture
Logo.Pcx - Simple example logo
Logo.Pas - Converted image of logo.pcx
LogoPal.Pas - Converted palette of logo.pcx
PPP.Doc - This docfile
For bugs/comments/other routines, contact me:
Eric van der Staay (Magician/SCL)
IJweg 133a
1161 EV ZWANENBURG
Holland
++31(0)2907-2039
Internet: StagVl1@Bouw.Tno.Nl (Until end of january '94!!!)
The projects I'm currently working on are:
MakePlot - A semi-intelligent datafile interpreter for use with e.g.
simulation models.
Cubulus - A sort of RUBIK's CUBE on a computer. Original idea from
Tobias Richter's PD game on Amiga.
TreePack - A file cruncher for Turbo Pascal datafiles (doesn't work
really good yet, coz it's not intelligent enough to see
whether he should crunch or not crunch...)
Well, that's it... I hope you have a good use for this program! And be sure to
pick up the latest sources from me and demos from Silicon on Ftp.Uwp.Edu!!!
- Eric